package com.ssy.lingxi.order.model.vo.basic.request;

import com.ssy.lingxi.order.handler.annotation.DeliverPeriodAnnotation;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 订单 - 配送时间接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-10-19
 */
public class BuyerOrderDeliverTimeVO implements Serializable {
    private static final long serialVersionUID = -9187077369422036501L;

    /**
     * 供应商会员（店铺所属会员、自营商城所属会员）Id
     */
    @NotNull(message = "供应商会员Id要大于0")
    @Positive(message = "供应商会员Id要大于0")
    private Long vendorMemberId;

    /**
     * 供应商会员（店铺所属会员、自营商城所属会员）角色Id
     */

    @NotNull(message = "供应商会员角色Id要大于0")
    @Positive(message = "供应商会员角色Id要大于0")
    private Long vendorRoleId;

    /**
     * 配送时间，可为空，如不为空，格式为yyyy-MM-dd， 或yyyy-MM-dd HH:mm，或yyyy-MM-dd HH:mm-HH:mm
     */
    @DeliverPeriodAnnotation
    private String deliverTime;

    /**
     * 订单备注
     */
    private String remark;

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }

    public String getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(String deliverTime) {
        this.deliverTime = deliverTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
